import http from "@/utils/request"


export const getBannerList=()=>{
    return http({
        url:"/banner/list",
        method:"get",
    }) as Promise<{ code: string; message: string; data?: any }>
}



export const getMenuList=()=>{
    return http({
        url:"/menu/list",
        method:"get",
    }) as Promise<{ code: string; message: string; data?: any }>
}


export const getProductList=(count: number, limitNum: number)=>{
    return http({
        url:"/pro/list",
        method:"get",
        params: { count, limitNum }
    }) as Promise<{ code: string; message: string; data?: any }>
}


export const getProducDetail=(proid:string)=>{
    return http({
        url:"/pro/detail/"+proid,
        method:"get",
    }) as Promise<{ code: string; message: string; data?: any }>
}